<?php
/*
2007-06-24 no static info
*/
  require('includes/application_top.php');
  require(DIR_WS_CLASSES . 'currencies.php');
  $currencies = new currencies();
  
//  $cat = array(array('title' => BOX_HEADING_CONFIGURATION,
// BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 1 of 10

// uncomment below line to disable this contribution

//	$cat = array(array('title' => BOX_HEADING_CONFIGURATION,

// comment below lines to disable this contribution

  $cat = array(array('title' => BOX_HEADING_ADMINISTRATOR,

                     'access' => tep_admin_check_boxes('administrator.php'),

                     'image' => 'administrator.gif',

                     'href' => tep_href_link(tep_selected_file('administrator.php'), 'selected_box=administrator'),

                     'children' => array(array('title' => BOX_ADMINISTRATOR_MEMBER, 'link' => tep_href_link(FILENAME_ADMIN_MEMBERS, 'selected_box=administrator'),

                                               'access' => tep_admin_check_boxes(FILENAME_ADMIN_MEMBERS, 'sub_boxes')),

                                         array('title' => BOX_ADMINISTRATOR_BOXES, 'link' => tep_href_link(FILENAME_ADMIN_FILES, 'selected_box=administrator'),

                                               'access' => tep_admin_check_boxes(FILENAME_ADMIN_FILES, 'sub_boxes')))),

								array('title' => BOX_HEADING_MY_ACCOUNT,

                     'access' => 'true',

                     'image' => 'my_account.gif',

                     'href' => tep_href_link(FILENAME_ADMIN_ACCOUNT),

                     'children' => array(array('title' => HEADER_TITLE_ACCOUNT, 'link' => tep_href_link(FILENAME_ADMIN_ACCOUNT),

                                               'access' => 'true'),

                                         array('title' => HEADER_TITLE_LOGOFF, 'link' => tep_href_link(FILENAME_LOGOFF),

                                               'access' => 'true'))),

                array('title' => BOX_HEADING_CONFIGURATION,

                     'access' => tep_admin_check_boxes('configuration.php'),

// EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 1 of 10
                     'image' => 'configuration.gif',
                     'href' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=1'),
                     'children' => array(array('title' => BOX_CONFIGURATION_MYSTORE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=1')),
                                         array('title' => BOX_CONFIGURATION_LOGGING, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=10')),
                                         array('title' => BOX_CONFIGURATION_CACHE, 'link' => tep_href_link(FILENAME_CONFIGURATION, 'selected_box=configuration&gID=11')))),
               array('title' => BOX_HEADING_MODULES,
// BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 2 of 10
// comment out below line to disable this contribution
                     'access' => tep_admin_check_boxes('modules.php'),
// EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 2 of 10
                     'image' => 'modules.gif',
                     'href' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=payment'),
                     'children' => array(array('title' => BOX_MODULES_PAYMENT, 'link' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=payment')),
                                         array('title' => BOX_MODULES_SHIPPING, 'link' => tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=shipping')))),
               array('title' => BOX_HEADING_CATALOG,
// BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 3 of 10
// comment out below line to disable this contribution
                     'access' => tep_admin_check_boxes('catalog.php'),
// EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 3 of 10
                     'image' => 'catalog.gif',
                     'href' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog'),
                     'children' => array(array('title' => CATALOG_CONTENTS, 'link' => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog')),
                                         array('title' => BOX_CATALOG_MANUFACTURERS, 'link' => tep_href_link(FILENAME_MANUFACTURERS, 'selected_box=catalog')))),
               array('title' => BOX_HEADING_LOCATION_AND_TAXES,
// BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 4 of 10
// comment out below line to disable this contribution
                     'access' => tep_admin_check_boxes('taxes.php'),
// EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 4 of 10
                     'image' => 'location.gif',
                     'href' => tep_href_link(FILENAME_COUNTRIES, 'selected_box=taxes'),
                     'children' => array(array('title' => BOX_TAXES_COUNTRIES, 'link' => tep_href_link(FILENAME_COUNTRIES, 'selected_box=taxes')),
                                         array('title' => BOX_TAXES_GEO_ZONES, 'link' => tep_href_link(FILENAME_GEO_ZONES, 'selected_box=taxes')))),
               array('title' => BOX_HEADING_CUSTOMERS,
// BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 5 of 10
// comment out below line to disable this contribution
                     'access' => tep_admin_check_boxes('customers.php'),
// EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 5 of 10
                     'image' => 'customers.gif',
                     'href' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers'),
                     'children' => array(array('title' => BOX_CUSTOMERS_CUSTOMERS, 'link' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers')),
                                         array('title' => BOX_CUSTOMERS_ORDERS, 'link' => tep_href_link(FILENAME_ORDERS, 'selected_box=customers')))),
               array('title' => BOX_HEADING_LOCALIZATION,
// BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 6 of 10
// comment out below line to disable this contribution
                     'access' => tep_admin_check_boxes('localization.php'),
// EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 6 of 10
                     'image' => 'localization.gif',
                     'href' => tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization'),
                     'children' => array(array('title' => BOX_LOCALIZATION_CURRENCIES, 'link' => tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization')),
                                         array('title' => BOX_LOCALIZATION_LANGUAGES, 'link' => tep_href_link(FILENAME_LANGUAGES, 'selected_box=localization')))),
               array('title' => BOX_HEADING_REPORTS,
// BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 7 of 10
// comment out below line to disable this contribution
                     'access' => tep_admin_check_boxes('reports.php'),
// EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 7 of 10
                     'image' => 'reports.gif',
                     'href' => tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports'),
                     'children' => array(array('title' => REPORTS_PRODUCTS, 'link' => tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports')),
                                         array('title' => REPORTS_ORDERS, 'link' => tep_href_link(FILENAME_STATS_CUSTOMERS, 'selected_box=reports')))),
	       array('title' => BOX_HEADING_AFFILIATE,
	             'image' => 'affiliate.gif',
		     'href' => tep_href_link(FILENAME_AFFILIATE_SUMMARY, 'selected_box=affiliate'),
		     'children' => array(array('title' => BOX_AFFILIATE, 'link' => tep_href_link(FILENAME_AFFILIATE, 'selected_box=affiliate')),
		    			 array('title' => BOX_AFFILIATE_BANNERS, 'link' => tep_href_link(FILENAME_AFFILIATE_BANNERS, 'selected_box=affiliate')))),
               array('title' => BOX_HEADING_TOOLS,
// BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 8 of 10
// comment out below line to disable this contribution
                     'access' => tep_admin_check_boxes('tools.php'),
// EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 8 of 10
                     'image' => 'tools.gif',
                     'href' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools'),
                     'children' => array(array('title' => TOOLS_BACKUP, 'link' => tep_href_link(FILENAME_BACKUP, 'selected_box=tools')),
                                         array('title' => TOOLS_BANNERS, 'link' => tep_href_link(FILENAME_BANNER_MANAGER, 'selected_box=tools')))));

  $languages = tep_get_languages();
  $languages_array = array();
  $languages_selected = DEFAULT_LANGUAGE;
  for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
    $languages_array[] = array('id' => $languages[$i]['code'],
                               'text' => $languages[$i]['name']);
    if ($languages[$i]['directory'] == $language) {
      $languages_selected = $languages[$i]['code'];
    }
  }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title><?php echo TITLE; ?></title>
<script language="javascript" src="includes/general.js"></script>
<?php require(DIR_FS_TEMPLATE . 'scripts/javascript.php'); ?>
<link rel="stylesheet" href="<?php echo DIR_WS_TEMPLATE ?>css/style.css" type="text/css">
</head>
<body>

<?php require(DIR_FS_TEMPLATE . 'template.php'); ?>
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->

<table border="0" width="100%" align="center" cellspacing="0" cellpadding="0">
  <tr>

<?php
/*
    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
*/
?>

<td valign="top">
<table border="0" width="95%" align="center" cellspacing="10" cellpadding="0">
<tr><td>




<table width="100%" cellspacing="0" cellpadding="0">

<tr>
		<td colspan="3" class="Heading1">
			Home<br><br>
		</td>
	</tr>
	<tr>
		<td colspan="3" class="body"></td>
	</tr>
	<tr>
		<td valign="top">

			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tbody><tr>
					<td valign="top" width="36%"><?php if (tep_admin_check_boxes('Everyone.php') == true) { ?>
						<div class="MidHeading"><img src="images/m_edit_settings.png" align="absmiddle" height="24" width="24">&nbsp;Edit Settings</div>
<ul style="margin-top: 5px; margin-bottom: 0px;">
	<li><a href="<?php echo DIR_WS_ADMIN; ?>logoff.php">Log Off!</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>admin_account.php">Edit Settings</a></li>

</ul>
<br>
					</td><?php } ?>
					<td valign="top" width="36%"><?php if (tep_admin_check_boxes('Customers & Orders.php') == true) { ?>
						<div class="MidHeading"><img src="images/m_customers_orders.png" align="absmiddle" height="24" width="24">&nbsp;Customer / Orders</div>
<ul style="margin-top: 5px; margin-bottom: 0px;">
	<li><a href="<?php echo DIR_WS_ADMIN; ?>create_account.php">New Customer Account</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>create_order.php">Create New Orders</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>customers.php">Customers Details</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>orders.php">Orders Details</a></li>
</ul>
<br>
					</td><?php } ?>
				</tr>
				<tr>
					<td valign="top" width="36%"><?php if (tep_admin_check_boxes('Products & Manufacturers.php') == true) { ?>
						<div class="MidHeading"><img src="images/m_products_news.png" align="absmiddle" height="24" width="24">&nbsp;Products / News</div>
<ul style="margin-top: 5px; margin-bottom: 0px;">
	<li><a href="<?php echo DIR_WS_ADMIN; ?>categories.php">Product List</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>products_attributes.php">Products Attributes</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>manufacturers.php">Manufacturers</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>featured.php">Featured Products</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>products_multi.php">Multi Products Manager</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>reviews.php">Reviews</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>specials.php">Specials</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>products_expected.php">Products Expected</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>latest_news.php">Latest News & Store Terms</a></li>

</ul>
<br>
					</td><?php } ?>
					<td valign="top" width="36%"><?php if (tep_admin_check_boxes('Reports and Sales.php') == true) { ?>
						<div class="MidHeading"><img src="images/m_reports.png" align="absmiddle" height="24" width="24">&nbsp;Reports</div>
<ul style="margin-top: 5px; margin-bottom: 0px;">
	<li><a href="<?php echo DIR_WS_ADMIN; ?>stockview.php">Stock View</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>stats_products_viewed.php">Products Viewed</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>stats_products_purchased.php">Products Purchased</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>stats_customers.php">Customer Orders Total</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>stats_unsold_carts.php">Unsold Cart</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>stats_manufacturers_sales.php">Manufacturer Sales</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>stats_monthly_sales.php">Monthly Sales & Tax</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>stats_sales_report.php">Sales Report with Graphs</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>stats_sales_report2.php">Sales Report Advanced</a></li>

</ul>
<br>
					</td><?php } ?>
				</tr>
				<tr>
					<td valign="top" width="36%"><?php if (tep_admin_check_boxes('Payment & Shipping.php') == true) { ?>
						<div class="MidHeading"><img src="images/m_taxes_modules.png" align="absmiddle" height="24" width="24">&nbsp;Taxes / Modules</div>
<ul style="margin-top: 5px; margin-bottom: 0px;">

	<li><a href="<?php echo DIR_WS_ADMIN; ?>modules.php?set=payment">Payment Modules</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>modules.php?set=sts">Templates</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>modules.php?set=shipping">Shipping Modules</a></li>
	<li><a href="<?php echo DIR_WS_ADMIN; ?>modules.php?set=ordertotal">Order Total</a></li>
<?php } ?>
<?php if (tep_admin_check_boxes('Backup & Newsletter.php') == true) { ?>
	<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>backup.php">Database Backup</a></li>
	<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>newsletters.php">Newsletter Manager</a></li>
<?php } ?>
<?php if (tep_admin_check_boxes('Currencies & Taxes.php') == true) { ?>
	<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>countries.php">Countries</a></li>
	<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>zones.php">Zones</a></li>
	<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>geo_zones.php">Tax Zones</a></li>
	<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>tax_classes.php">Tax Classes</a></li>
	<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>tax_rates.php">Tax Rates</a></li>
	<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>currencies.php">Currencies</a></li>
	<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>languages.php">Languages</a></li>
	<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>orders_status.php">Orders Status</a></li>

</ul>
<br>
					</td><?php } ?>
					<td valign="top" width="36%"><?php if (tep_admin_check_boxes('Configuration & Settings.php') == true) { ?>
						<div class="MidHeading"><img src="images/m_configuration.png" align="absmiddle" height="24" width="24">&nbsp;Store Configuration</div>
<ul style="margin-top: 5px; margin-bottom: 0px;">
<?php if (tep_admin_check_boxes('Administrators.php') == true) { ?>
<li><a href="<?php echo DIR_WS_ADMIN; ?>admin_members.php">Edit Admins & Groups</a></li>
<!--
<li class="level3"><a href="<?php echo DIR_WS_ADMIN; ?>admin_files.php">Edit File Access</a></li>
-->
<?php } ?>
	<?php
$configs_query = tep_db_query("select configuration_group_id, configuration_group_title from " . TABLE_CONFIGURATION_GROUP . " where visible = '1' order by sort_order");
while ($configs = tep_db_fetch_array($configs_query)) {
$configs_name = ((strlen($configs['configuration_group_title']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($configs['configuration_group_title'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $configs['configuration_group_title']);
?>
<li><a href="<?php echo DIR_WS_ADMIN; ?>configuration.php?gID=<?php echo $configs['configuration_group_id']; ?>"><?php echo $configs_name; ?></a></li>
<?php
}
?>
</ul>
<br>
					</td><?php } ?>
				</tr>
</table>







<?php 
/*

  $orders_contents = '';
  $orders_status_query = tep_db_query("select orders_status_name, orders_status_id from " . TABLE_ORDERS_STATUS . " where language_id = '" . $languages_id . "'");
  while ($orders_status = tep_db_fetch_array($orders_status_query)) {
    $orders_pending_query = tep_db_query("select count(*) as count from " . TABLE_ORDERS . " where orders_status = '" . $orders_status['orders_status_id'] . "'");
    $orders_pending = tep_db_fetch_array($orders_pending_query);
//    $orders_contents .= '<a href="' . tep_href_link(FILENAME_ORDERS, 'selected_box=customers&status=' . $orders_status['orders_status_id']) . '">' . $orders_status['orders_status_name'] . '</a>: ' . $orders_pending['count'] . '<br>';
// BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 10 of 10
// reverse comments to below lines to disable this contribution
//    $orders_contents .= '<a href="' . tep_href_link(FILENAME_ORDERS, 'selected_box=customers&status=' . $orders_status['orders_status_id']) . '">' . $orders_status['orders_status_name'] . '</a>: ' . $orders_pending['count'] . '<br>';
    if (tep_admin_check_boxes(FILENAME_ORDERS, 'sub_boxes') == true) {
      $orders_contents .= '<a href="' . tep_href_link(FILENAME_ORDERS, 'selected_box=customers&status=' . $orders_status['orders_status_id']) . '">' . $orders_status['orders_status_name'] . '</a>: ' . $orders_pending['count'] . '<br>';
    } else {
      $orders_contents .= '' . $orders_status['orders_status_name'] . ': ' . $orders_pending['count'] . '<br>';
    }
// EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 10 of 10
  }
  $orders_contents = substr($orders_contents, 0, -4);

  $heading = array();
  $contents = array();

  $contents[] = array('params' => 'class="infoBox"',
                      'text'  => $orders_contents);

  $box = new box;
  echo $box->menuBox($heading, $contents);

  echo '<br>';

  $customers_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS);
  $customers = tep_db_fetch_array($customers_query);
  $products_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS . " where products_status = '1'");
  $products = tep_db_fetch_array($products_query);
  $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS);
  $reviews = tep_db_fetch_array($reviews_query);

  $heading = array();
  $contents = array();

  $heading[] = array('params' => '',
                     'text'  => '<h2>'.BOX_TITLE_STATISTICS.'</h2>');

  $contents[] = array('params' => 'class="infoBox"',
                      'text'  => BOX_ENTRY_CUSTOMERS . ' ' . $customers['count'] . '<br>' .
                                 BOX_ENTRY_PRODUCTS . ' ' . $products['count'] . '<br>' .
                                 BOX_ENTRY_REVIEWS . ' ' . $reviews['count']);

  $box = new box;
  echo $box->menuBox($heading, $contents);

  echo '<br>';
*/
?>

<?php
/*
$affiliate_sales_raw = "select count(*) as count, sum(affiliate_value) as total, sum(affiliate_payment) as payment from " . TABLE_AFFILIATE_SALES . " ";
$affiliate_sales_query= tep_db_query($affiliate_sales_raw);
$affiliate_sales= tep_db_fetch_array($affiliate_sales_query);

$affiliate_clickthroughs_raw = "select count(*) as count from " . TABLE_AFFILIATE_CLICKTHROUGHS . " ";
$affiliate_clickthroughs_query=tep_db_query($affiliate_clickthroughs_raw);
$affiliate_clickthroughs= tep_db_fetch_array($affiliate_clickthroughs_query);
$affiliate_clickthroughs=$affiliate_clickthroughs['count'];

$affiliate_transactions=$affiliate_sales['count'];
if ($affiliate_transactions>0) {
    $affiliate_conversions = tep_round($affiliate_transactions/$affiliate_clickthroughs,6)."%";
    }
    else $affiliate_conversions="n/a";
    
    $affiliate_amount=$affiliate_sales['total'];
    if ($affiliate_transactions>0) {
	$affiliate_average=tep_round($affiliate_amount/$affiliate_transactions,2);
	}
	else {
	    $affiliate_average="n/a";
	    }
	    $affiliate_commission=$affiliate_sales['payment'];
	    
	    $affiliates_raw = "select count(*) as count from " . TABLE_AFFILIATE . "";
	    $affiliates_raw_query=tep_db_query($affiliates_raw);
	    $affiliates_raw = tep_db_fetch_array($affiliates_raw_query);
	    $affiliate_number= $affiliates_raw['count'];
	    
	    
    $heading = array();
    $contents = array();
		
    $heading[] = array('params' => '',
               'text'  => '<h2>' .BOX_TITLE_AFFILIATES. '</h2>');
				       
    $contents[] = array('params' => 'class="infoBox"',
               'text'  => BOX_ENTRY_AFFILIATES . ' ' . $affiliate_number . '<br>' .
                          BOX_ENTRY_CONVERSION . ' ' . $affiliate_conversions . '<br>' .
                          BOX_ENTRY_COMMISSION . ' ' . $currencies->display_price($affiliate_commission, ''));
											 
    $box = new box;
	       echo $box->menuBox($heading, $contents);
																     
	       echo '<br>';
*/
?>

<?php

  $contents = array();

  if (getenv('HTTPS') == 'on') {
    $size = ((getenv('SSL_CIPHER_ALGKEYSIZE')) ? getenv('SSL_CIPHER_ALGKEYSIZE') . '-bit' : '<i>' . BOX_CONNECTION_UNKNOWN . '</i>');
    $contents[] = array('params' => 'class="infoBox"',
                        'text' => tep_image(DIR_WS_ICONS . 'locked.png', ICON_LOCKED, '', '', 'align="left"') . sprintf(BOX_CONNECTION_PROTECTED, $size));
  } else {
    $contents[] = array('params' => 'class="infoBox"',
                        'text' => tep_image(DIR_WS_ICONS . 'unlocked.png', ICON_UNLOCKED, '', '', 'align="left"') . BOX_CONNECTION_UNPROTECTED);
  }

  $box = new box;
  echo $box->tableBlock($contents);

?>                    </td>
                  </tr>
      </table>
</td>
<td style="border-left: 1px solid rgb(243, 241, 229); padding-right: 20px;">&nbsp;</td>
<td valign="top" width="27%">
<table border="0" width="100%" cellspacing="0" cellpadding="0" border="0">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- left_navigation_eof //-->
</table></td>

</td></tr></table>



<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

</body>

</html>
